﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;

namespace DatingWebSite.Pages
{
    public partial class search : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
              
                Hashtable htFilters = new Hashtable();

                htFilters.Add("ddlgender", ddlgender.SelectedValue.ToString());
                htFilters.Add("ddlMinAge", ddlMinAge.SelectedValue.ToString());
                htFilters.Add("ddlMaxAge", ddlMaxAge.SelectedValue.ToString());
                htFilters.Add("ddlLocation", ddlLocation.SelectedValue.ToString());
                htFilters.Add("CheckBoxProfilesWith", CheckBoxProfilesWith.SelectedValue.ToString());
                htFilters.Add("rdDisplay", ddlMinAge.SelectedValue.ToString());
           
                Session.Add("htFilters", htFilters);
                Response.Redirect("searchresult.aspx");
            }





        }
    }
}
